/**
 * 
 */
package com.mywind.entity.windfarm;

import java.util.Date;

import org.apache.ibatis.type.Alias;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import com.mywind.util.CustomDateSerializer;

/**
 * @author a01513
 *
 */
@Alias("diagnose")
public class DiagnoseEntity {
	
	private String fcode;
	private String farmname;
	private int wcode;
	private String trigkey;
	private String desc;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date times;
	private int msecond;
	private double gpower;
	private double wspeed;
	private double gspeed;
	private double pangle;
	
	public String getFcode() {
		return fcode;
	}
	public void setFcode(String fcode) {
		this.fcode = fcode;
	}
	public int getWcode() {
		return wcode;
	}
	public void setWcode(int wcode) {
		this.wcode = wcode;
	}
	public String getTrigkey() {
		return trigkey;
	}
	public void setTrigkey(String trigkey) {
		this.trigkey = trigkey;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getTimes() {
		return times;
	}
	public void setTimes(Date times) {
		this.times = times;
	}
	public int getMsecond() {
		return msecond;
	}
	public void setMsecond(int msecond) {
		this.msecond = msecond;
	}
	public double getGpower() {
		return gpower;
	}
	public void setGpower(double gpower) {
		this.gpower = gpower;
	}
	public double getWspeed() {
		return wspeed;
	}
	public void setWspeed(double wspeed) {
		this.wspeed = wspeed;
	}
	public double getGspeed() {
		return gspeed;
	}
	public void setGspeed(double gspeed) {
		this.gspeed = gspeed;
	}
	public double getPangle() {
		return pangle;
	}
	public void setPangle(double pangle) {
		this.pangle = pangle;
	}
	public String getFarmname() {
		return farmname;
	}
	public void setFarmname(String farmname) {
		this.farmname = farmname;
	}
	
}
